package org.hry.demo.tcp.crlf;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class ServerHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
        System.out.println("服务端接收到信息：" +  msg);
        ctx.writeAndFlush("这里是服务端返回的信息\r\n");
    }
}
